package com.mall4j.cloud.user.domain.entity;

import lombok.Builder;
import lombok.Getter;

import java.util.Date;

@Getter
@Builder
public class User {
    private Long id;
    private String nickName;
    private Integer status;
    private Date createTime;
    private Date updateTime;

    public void register(String nickName){
        this.nickName = nickName;
        this.status = 1;
        this.createTime = new Date();
        this.updateTime = new Date();
    }
}
